<template>
  <div>
    <h1>{{msg}}</h1>
    <button @click="onclick()">点击事件</button>
  </div>
</template>

<script>
export default {
 data: () => {
   return {
     msg: 'Vue文件webpack的配置'
   }
 },
 methods: {
   onclick(){
     console.log("点击事件!");
   }
 }
}
</script>

<style>

</style>